package com.social.socialservice.controller;

import com.social.socialservice.unit.Response;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页控制器
 */
@RestController
@CrossOrigin
public class HomeController {
    /**
     * 请求方法
     */
    @CrossOrigin
    @RequestMapping(value = "/getTest", method = RequestMethod.POST, produces = "application/json; utf-8")
    public Response getTest(){
        return new Response(200,"消息",null);
    }
}
